import os

from test_xianghaiyang.models import House

# House.objects.create(title=10,
#                      price=100,
#                      area_id=1,
#                      address='10号',
#                      room_count=5,
#                      acreage=100,
#                      unit='两室两厅',
#                      capacity=5,
#                      beds='双人床',
#                      deposit=1000,
#                      min_days=1,
#                      max_days=0,facility=[1,2,3,4,5],
#                      user_id=4)






# # 房屋容纳的人数
# capacity = json_dict.get('capacity')
# beds = json_dict.get('beds')
# # 房屋租金
# deposit = json_dict.get('deposit')
# min_days = json_dict.get('min_days')
# max_days = json_dict.get('max_days')
# # 用户选择的设施信息id列表，如：[7, 8]
# facility = json_dict.get('facility')